﻿package com.nianzhen.student.fra;

import com.nianzhen.recruitment.BaseFragment;
import com.nianzhen.recruitment.R;
import com.nianzhen.student.ApplyJobActivity;
import com.nianzhen.student.FavoriteJobActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.RelativeLayout;

import com.nianzhen.recruitment.BaseFragment;
import com.nianzhen.recruitment.R;

/**
 * 我的收藏界面
 * @author nianzhen 
 * 2015年4月1日20:39:41
 *
 */
public class Collect extends BaseFragment {
	
	private RelativeLayout mAppleRl;
	private RelativeLayout mFavRl;
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		return inflater.inflate(R.layout.collect, container, false);
	}

	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onActivityCreated(savedInstanceState);
		init();
	}

	private void init() {
		// TODO Auto-generated method stub
		setTitle("我的收藏");
		mAppleRl =(RelativeLayout)getView().findViewById(R.id.msg_discount);
		mFavRl =(RelativeLayout)getView().findViewById(R.id.msg_zan);
		mAppleRl.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				//
				startActivity(new Intent(getActivity(),ApplyJobActivity.class));
			}
		});
		mFavRl.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				startActivity(new Intent(getActivity(),FavoriteJobActivity.class));
			}
		});
	}
}
